package eteam.aps.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import eteam.aps.common.constant.PackType;
import eteam.aps.common.constant.ProductType;
import eteam.aps.common.constant.QuteType;
import eteam.aps.common.entity.ParentEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 产品序号明细;产品序号
 *
 * @author LiuLei
 */
@ApiModel(value = "ProductNumber", description = "产品序号明细")
@TableName("zn_product_serial_number")
public class ProductNumber extends ParentEntity {

    /**
     * 工单Id;工单Id
     */
    @TableField("FMoId")
    @ApiModelProperty("工单Id")
    private int fMoId;

    /**
     * 工单代号;工单代号
     */
    @TableField("FMocCode")
    @ApiModelProperty("工单代号")
    private String fMocCode;

    /**
     * 工单编号;工单编号
     */
    @TableField("FMocNo")
    @ApiModelProperty("工单编号")
    private int fMocNo;

    /**
     * 品号;品号
     */
    @TableField("FInvCode")
    @ApiModelProperty("品号")
    private String fInvCode;

    /**
     * 条码;条码
     */
    @TableField("FSnBarCode")
    @ApiModelProperty("条码")
    private String fSnBarCode;

    @TableField("FBatch")
    @ApiModelProperty("批号")
    private String fBatch;

    @TableField("FBanBen")
    @ApiModelProperty("版本")
    private String fBanBen;

    @TableField("FWhCode")
    @ApiModelProperty("仓库编号")
    private String fWhCode;

    @TableField("FWhName")
    @ApiModelProperty("仓库名称")
    private String fWhName;

    @TableField("FOrderNumber")
    @ApiModelProperty("销售单单号")
    private String fOrderNumber;

    @TableField("FOrderCode")
    @ApiModelProperty("销售单单号")
    private String fOrderCode;

    /**
     * 前缀;前缀
     */
    @TableField("FFront")
    @ApiModelProperty("前缀")
    private String fFront;

    /**
     * 后缀;后缀
     */
    @TableField("FLastStr")
    @ApiModelProperty("后缀")
    private String fLastStr;

    /**
     * 序列号;序列号
     */
    @TableField("FSeqNo")
    @ApiModelProperty("序列号")
    private String fSeqNo;

    @TableField("FProType")
    @ApiModelProperty("生产类型【-1 异常报工，0 草稿，1生产者中，2 正常报工，3 已入库，4 已扫描，5 已发货】")
    private int fProType = ProductType.DRAFT;

    @TableField("FPackType")
    @ApiModelProperty("生产类型【0 默认，1 已扫描")
    private int fPackType = PackType.DEFAULT;

    @TableField("FOuterPackaging")
    @ApiModelProperty("生产类型【0 默认，1 已扫描")
    private int fOuterPackaging = QuteType.INSIDE;

    public ProductNumber() {
    }

    public ProductNumber(int fMoId, String fMocCode, int fMocNo, String fInvCode, String fSnBarCode, String fFront, String fLastStr, String fSeqNo) {
        this.fMoId = fMoId;
        this.fMocCode = fMocCode;
        this.fMocNo = fMocNo;
        this.fInvCode = fInvCode;
        this.fSnBarCode = fSnBarCode;
        this.fFront = fFront;
        this.fLastStr = fLastStr;
        this.fSeqNo = fSeqNo;
    }

    public String getfBatch() {
        return fBatch;
    }

    public void setfBatch(String fBatch) {
        this.fBatch = fBatch;
    }

    public String getfBanBen() {
        return fBanBen;
    }

    public void setfBanBen(String fBanBen) {
        this.fBanBen = fBanBen;
    }

    public String getfWhCode() {
        return fWhCode;
    }

    public void setfWhCode(String fWhCode) {
        this.fWhCode = fWhCode;
    }

    public String getfWhName() {
        return fWhName;
    }

    public void setfWhName(String fWhName) {
        this.fWhName = fWhName;
    }

    public String getfOrderNumber() {
        return fOrderNumber;
    }

    public void setfOrderNumber(String fOrderNumber) {
        this.fOrderNumber = fOrderNumber;
    }

    public String getfOrderCode() {
        return fOrderCode;
    }

    public void setfOrderCode(String fOrderCode) {
        this.fOrderCode = fOrderCode;
    }

    public int getfMoId() {
        return fMoId;
    }

    public void setfMoId(int fMoId) {
        this.fMoId = fMoId;
    }

    public String getfMocCode() {
        return fMocCode;
    }

    public void setfMocCode(String fMocCode) {
        this.fMocCode = fMocCode;
    }

    public int getfMocNo() {
        return fMocNo;
    }

    public void setfMocNo(int fMocNo) {
        this.fMocNo = fMocNo;
    }

    public String getfInvCode() {
        return fInvCode;
    }

    public void setfInvCode(String fInvCode) {
        this.fInvCode = fInvCode;
    }

    public String getfSnBarCode() {
        return fSnBarCode;
    }

    public void setfSnBarCode(String fSnBarCode) {
        this.fSnBarCode = fSnBarCode;
    }

    public String getfFront() {
        return fFront;
    }

    public void setfFront(String fFront) {
        this.fFront = fFront;
    }

    public String getfLastStr() {
        return fLastStr;
    }

    public void setfLastStr(String fLastStr) {
        this.fLastStr = fLastStr;
    }

    public String getfSeqNo() {
        return fSeqNo;
    }

    public void setfSeqNo(String fSeqNo) {
        this.fSeqNo = fSeqNo;
    }

    public int getfProType() {
        return fProType;
    }

    public void setfProType(int fProType) {
        this.fProType = fProType;
    }

    public int getfPackType() {
        return fPackType;
    }

    public void setfPackType(int fPackType) {
        this.fPackType = fPackType;
    }

    public int getfOuterPackaging() {
        return fOuterPackaging;
    }

    public void setfOuterPackaging(int fOuterPackaging) {
        this.fOuterPackaging = fOuterPackaging;
    }
}